Repository navigation
chore(SOL-404): add host-neutral eval runner and plugin regression cases - #48
faisalreza-stackone wants to merge 1 commit into
Conversation
- scripts/evals: runner, claude/antigravity/cursor/codex adapters, reference judge - 38 cases across the six integration plugins - README: evals section, structure tree Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
46 issues found across 57 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="scripts/evals/cases/stackone-connectors/teams-publisher-attestation.json">
<violation number="1" location="scripts/evals/cases/stackone-connectors/teams-publisher-attestation.json:15">
P2: The no-invention requirement is only in `reference[]`, which is unscored unless the runner receives `--score-reference`; the default case can pass a reply that invents StackOne’s position on attestation. Add a scored negative check for unsupported commitments or ensure reference scoring is enabled for this case.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/connector-billing.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/connector-billing.json:11">
P2: This scored check rejects ordinary correct guidance such as “reach out to support.” Add common support-routing phrasings so the case does not fail on wording alone.</violation>
</file>
<file name="scripts/evals/hosts/antigravity.ts">
<violation number="1" location="scripts/evals/hosts/antigravity.ts:19">
P2: This adapter drops each case's `maxTurns`, so Antigravity runs do not use the documented per-case turn cap. Enforce the cap with a supported host option or terminate the run when the cap is reached.</violation>
<violation number="2" location="scripts/evals/hosts/antigravity.ts:25">
P1: This flag disables permission checks without sandboxing the host to `workDir`, allowing an eval model or plugin skill to read or modify the user's files and invoke unrestricted tools. Use a restrictive tool or sandbox mode instead of enabling the dangerous permission bypass.</violation>
<violation number="3" location="scripts/evals/hosts/antigravity.ts:56">
P2: `readTranscript` parses `last_conversations.json` without a try/catch. When `agy` is killed mid-write — which is exactly what happens when exec's 600s cap fires — the map file can be truncated and `JSON.parse` throws, aborting the whole suite before any remaining case runs. Return undefined on a parse failure instead, matching the defensive catching that `parseJsonLines` already does everywhere else.</violation>
</file>
<file name="scripts/evals/run-host.ts">
<violation number="1" location="scripts/evals/run-host.ts:53">
P2: A fractional `--runs` value is accepted, but the integer loop rounds it up (`1.5` runs twice) while the result records `1.5`. Reject non-positive or non-integer values before starting.</violation>
<violation number="2" location="scripts/evals/run-host.ts:79">
P2: `adapter.run` is called with no try/catch, and three of the four adapters call `installWithSkillsCli`, which throws on any `npx skills add` failure (process.ts: `if (install.status !== 0) throw new Error(...)`). One failed skill install therefore aborts the whole suite mid-loop: remaining cases never run and the summary and `--json` document are never written. That contradicts this file's own design, documented in the README, that a run error is recorded on the run and does not fail the suite. Catch per-run exceptions and record them as the run's error (`RawRun.error`) so the loop continues.</violation>
<violation number="3" location="scripts/evals/run-host.ts:135">
P2: With no matching case files (empty `--cases` directory, a `--plugin` name with no cases dir, or a `--case` prefix that matches nothing), `loadCases` returns `[]`, so `casesPassed === casesTotal` is `0 === 0` and the suite exits 0 after printing `cases passed 0 / 0`. A misconfigured run silently greens the CI gate the README advertises. Guard `cases.length === 0` after `loadCases` and return a non-zero status with an error message.</violation>
<violation number="4" location="scripts/evals/run-host.ts:157">
P2: For a large run piped to a consumer, `process.exit()` can discard queued report output. Set `process.exitCode` and let stdout drain before Node exits.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/data-sync-off-map.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/data-sync-off-map.json:9">
P2: `grade.ts` checks each `fetch` regex against any tool call independently, so this case passes when the agent fetches a Data Sync page before `llms.txt`; it does not test the stated index-first routing. Add ordered-fetch support and assert that the index call precedes the topic-page call.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/account-status-meaning.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/account-status-meaning.json:20">
P2: This case never checks the answer to either half of the prompt: any status explanation or remediation advice passes unless it says the banned legacy field. Add a positive reply check or reference facts grounded in the accounts documentation so incorrect guidance fails.</violation>
</file>
<file name="scripts/evals/cases/stackone-agents/limit-tools-in-agent-context.json">
<violation number="1" location="scripts/evals/cases/stackone-agents/limit-tools-in-agent-context.json:17">
P2: This regex passes on incidental mentions such as “search the docs,” without recommending either documented lever. Match tool search or connector/profile scoping so an irrelevant reply cannot pass this check.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/accounts-no-credentials.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/accounts-no-credentials.json:29">
P2: This reference gives the judge retired v1 account fields (`provider` and `origin_owner_id`) as v2 fields. It can reward outdated replies and penalize correct ones; use the v2 names `connector` and `owner_id`.</violation>
</file>
<file name="scripts/evals/cases/stackone-connectors/workday-user-impersonation.json">
<violation number="1" location="scripts/evals/cases/stackone-connectors/workday-user-impersonation.json:17">
P2: This scored check rejects the title-cased profile name “User Login Flow” because only the first character is case-insensitive. Make the remaining words case-insensitive too.</violation>
</file>
<file name="scripts/evals/cases/stackone-connectors/workday-actions-available.json">
<violation number="1" location="scripts/evals/cases/stackone-connectors/workday-actions-available.json:17">
P2: This check passes for fabricated IDs such as `workday_fake_action`, so the case can score a reply that names no available Workday action. Match a documented action ID instead, such as `workday_get_worker`.</violation>
</file>
<file name="scripts/evals/cases/stackone-agents/langchain-agent-tools.json">
<violation number="1" location="scripts/evals/cases/stackone-agents/langchain-agent-tools.json:22">
P2: These token checks let a prose-only answer pass even though the prompt asks for code; `reference[]` is not scored by default. Add a scored check for a Python code example or equivalent code structure.</violation>
<violation number="2" location="scripts/evals/cases/stackone-agents/langchain-agent-tools.json:30">
P2: `bamboohr_*` matches BambooHR actions generally, not specifically list-employees. Use the documented `*_list_employees` glob here so the reference facts do not endorse the wrong filter for the requested action.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/rename-organisation.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/rename-organisation.json:15">
P2: This case passes if the agent invents a dashboard rename path and also mentions support: `no_reply` is empty, and `reference` facts are advisory unless `--score-reference` is enabled. Add a scored `no_reply` check for fabricated settings directions, or ensure reference scoring is enabled for this suite.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/find-request-logs.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/find-request-logs.json:9">
P2: This check passes for any tool input containing either path fragment, including a non-StackOne URL, so an unrelated fetch can make the case pass. Restrict the alternatives to the expected `docs.stackone.com` URLs.</violation>
</file>
<file name="scripts/evals/cases/README.md">
<violation number="1" location="scripts/evals/cases/README.md:5">
P2: This overstates the default checks: several graceful-no cases have no `no_reply` assertions, and their `reference[]` checks are unscored unless `--score-reference` is enabled. An answer that invents a setting but also points to support can therefore pass; describe reference checks as indicators by default or make the anti-invention checks part of the default score.</violation>
</file>
<file name="scripts/evals/types.ts">
<violation number="1" location="scripts/evals/types.ts:125">
P3: `costUsd` can be non-null even when the host reports no spend because the suite includes reference-judge costs. Clarify that null means neither the host nor the judge reported spend.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/retry-backoff-guidance.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/retry-backoff-guidance.json:2">
P2: This case asks about 502, but its reference facts do not define StackOne's handling of that status, so a reply can invent 502-specific behavior and still pass the judge. Add an explicit 502 reference fact or narrow the prompt to the documented 429 behavior.</violation>
</file>
<file name="scripts/evals/cases/stackone-connectors/workday-documents.json">
<violation number="1" location="scripts/evals/cases/stackone-connectors/workday-documents.json:17">
P2: This accepts fabricated identifiers such as `workday_fake_document`, so a reply can invent an unsupported action and still pass the scored check. Match explicit action IDs listed on the page; reference facts do not catch this by default.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/log-pii-redaction.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/log-pii-redaction.json:9">
P2: The platform skill always fetches `llms.txt`, so this alternative lets the case pass without fetching any logs or observability page. Require a relevant page here so the eval catches agents that stop at the index.</violation>
</file>
<file name="scripts/evals/hosts/cursor.ts">
<violation number="1" location="scripts/evals/hosts/cursor.ts:17">
P2: This adapter drops `RunContext.maxTurns`, so Cursor cases silently ignore their configured turn cap and can run until the global timeout. Pass the cap through using Cursor's supported limit, or explicitly surface that this host cannot enforce it.</violation>
<violation number="2" location="scripts/evals/hosts/cursor.ts:21">
P2: Headless `cursor-agent` runs can stall on the workspace-trust prompt unless `--trust` is passed; the CLI reference lists it as required for headless/print mode. Also note `-f` here is `--force`, not a prompt-file flag — the prompt is the positional argument, so the current command passes it only by accident. Add `--trust` (and `-f/--force` explicitly if wanted) so runs do not hang on permission dialogs.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/create-api-key.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/create-api-key.json:14">
P2: The prompt also asks whether the key is organisation- or project-scoped, but this case passes on the URL fetch alone; add a scored reply assertion so a wrong or empty scope answer cannot pass.</violation>
</file>
<file name="scripts/evals/report.ts">
<violation number="1" location="scripts/evals/report.ts:42">
P2: When a host omits `costUsd`, reference cases make this report judge-only spend as the suite total even though host-run costs are unknown. Base total availability on host cost reporting, or clearly label partial spend.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/passthrough-idle-timeout.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/passthrough-idle-timeout.json:24">
P2: This check misses single- and four-plus-digit timeouts and numeric status codes such as `504`, so fabricated answers can pass the default scored checks. Expand it to reject any seconds value and HTTP status code.</violation>
</file>
<file name="scripts/evals/cases/stackone-agents/helpscout-to-claude.json">
<violation number="1" location="scripts/evals/cases/stackone-agents/helpscout-to-claude.json:6">
P3: This note assigns Help Scout account linking to `stackone-connectors`, but both plugin skills route account-linking setup to `stackone-connect`. Update the note so the diagnostic does not misstate plugin ownership.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/account-disconnect-notification.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/account-disconnect-notification.json:9">
P2: This case rejects the Platform Events reference even though the webhook regression case accepts it as a valid source. Add `platform-api/platform-events` so an answer grounded in that reference does not fail this fetch check.</violation>
</file>
<file name="scripts/evals/cases/stackone-platform/log-request-source.json">
<violation number="1" location="scripts/evals/cases/stackone-platform/log-request-source.json:17">
P2: This check passes on any one field, so mentioning `auth_type` alone can pass without identifying which key, session, or OAuth user made the call; reference facts are unscored by default. Require both `auth_type` and `auth_id` in the scored check.</violation>
</file>
<file name="scripts/evals/hosts/liberal-transcript.ts">
<violation number="1" location="scripts/evals/hosts/liberal-transcript.ts:17">
P1: Codex `exec --json` replies arrive as nested `agent_message` items, so this condition never extracts the reply and Codex reply/reference checks run against an empty string. Add parsing for Codex item events, including its tool-call items, before grading these runs.</violation>
</file>
<file name="scripts/evals/process.ts">
<violation number="1" location="scripts/evals/process.ts:23">
P2: `exec` ignores nonzero child exit codes because `spawnSync` reports them in `status` without setting `error`; failed host runs are therefore reported as error-free and can pass when no checks are scored. Set `RawRun.error` for nonzero status or signal termination.</violation>
</file>
<file name="scripts/evals/README.md">
<violation number="1" location="scripts/evals/README.md:115">
P2: This promises a per-case turn cap for every host, but only Claude uses `context.maxTurns`; Antigravity, Cursor, and Codex ignore it. Pass the cap through those adapters or document that it is Claude-only.</violation>
</file>
<file name="scripts/evals/judge.ts">
<violation number="1" location="scripts/evals/judge.ts:45">
P1: The prompt includes the agent's untrusted reply verbatim, but “Do not use any tools” is only an instruction and this invocation does not disable Claude Code tools. An injected reply can prompt the judge to read local files with the developer's permissions; explicitly disable tools for this call.</violation>
<violation number="2" location="scripts/evals/judge.ts:136">
P2: `parseVerdict` accepts any array and treats a missing `contradictions` list as empty; malformed entries can also throw later in `.find` or `.join`. Validate the complete verdict schema so invalid model output becomes `reference-judge` instead of crashing or passing the contradiction check.</violation>
</file>
<file name="scripts/evals/hosts/codex.ts">
<violation number="1" location="scripts/evals/hosts/codex.ts:16">
P2: Codex never receives the case's `maxTurns`, so cases with `max_turns` can run past their configured cap and occupy the ten-minute timeout. Pass an equivalent Codex turn limit or enforce the cap in this adapter.</violation>
</file>
<file name="scripts/evals/grade.ts">
<violation number="1" location="scripts/evals/grade.ts:46">
P3: This marks an unrelated `Skill` invocation as this skill whenever its arguments mention `skillName`. Match the `skill` field exactly so the per-run fired indicator does not report a skill the agent never invoked.</violation>
</file>
<file name="scripts/evals/hosts/claude.ts">
<violation number="1" location="scripts/evals/hosts/claude.ts:61">
P2: This check does not verify that the requested plugin loaded: an ignored or ineffective `--plugin-dir` can leave zero plugins, or one unrelated plugin, without setting an error. Carry the expected plugin identity into validation and reject the run unless that plugin is present.</violation>
</file>
<file name="scripts/evals/cases/stackone-connectors/plaid-redirect-uri.json">
<violation number="1" location="scripts/evals/cases/stackone-connectors/plaid-redirect-uri.json:21">
P2: A made-up Plaid-specific URI can still pass this case: the support phrase satisfies its only scored reply check, while `reference[]` is unscored by default. Add a deterministic guard against Plaid-specific URI claims or ensure this case runs with `--score-reference`.</violation>
</file>
<file name="scripts/evals/cases/stackone-connectors/connector-catalog-endpoint.json">
<violation number="1" location="scripts/evals/cases/stackone-connectors/connector-catalog-endpoint.json:17">
P2: This also matches an execution route such as `POST /actions/rpc`, which does not list the catalog. Require a GET listing route and exclude the RPC path.</violation>
</file>
<file name="scripts/evals/cases/stackone-connect/oauth-app-whose-credentials.json">
<violation number="1" location="scripts/evals/cases/stackone-connect/oauth-app-whose-credentials.json:17">
P3: The `[Cc]lient ID` regex only matches capital "ID" with a space, so a correct reply phrased as "client id" or "clientId" fails this check. Loosen it to `[Cc]lient [Ii][Dd]` (or drop the space) so the check tracks the docs' intent rather than one exact casing.</violation>
</file>
<file name="scripts/evals/cases/stackone-connectors/paylocity-available.json">
<violation number="1" location="scripts/evals/cases/stackone-connectors/paylocity-available.json:17">
P3: This scored `reply` check matches only the exact casing "Paylocity". `grade.ts` compiles `match` with `new RegExp(pattern)` (no `i` flag), so a host model that writes "Paylocity" lowercased (e.g. while quoting docs prose) fails the only reply check in the case and sinks the run's score. Same-suite conventions make word-case tolerant (`[Ww]ebhook`, `[Cc]ontact` … `[Ss]upport`, `[Pp]roject`). Use `[Pp]aylocity`; the same fix applies to the fixed-case `"Manatal"` / `"Zinc"` reply matches in manatal-zinc-sonavate.json and `"S/4HANA"` in sap-erp-connector.json.</violation>
</file>
<file name="scripts/evals/cases/stackone-unified-connectors/cursor-pagination-next.json">
<violation number="1" location="scripts/evals/cases/stackone-unified-connectors/cursor-pagination-next.json:9">
P3: This scored fetch check requires the agent to fetch the `paginated_request` step-function page, but the plugin's own skill steers the opposite way: `plugins/integrations/stackone-unified-connectors/skills/stackone-unified-connectors/SKILL.md` instructs "For list endpoints, use cursor pagination with the `request` function" and warns "Use `request` function (not `paginated_request`)... the `paginated_request` function can have issues with `$.inputs.*` resolving to `undefined`", embedding the full cursor-pagination pattern inline and in `references/pagination-patterns.md`. A correct agent following the skill can answer without ever fetching that URL, so the check fails on an otherwise-correct run (or makes the run depend on the model navigating past the skill's own advice). Per the case README, a right answer through a different route is still a right answer; broaden the match to also accept the `request` step-function page or demote this to an unscored indicator.</violation>
<violation number="2" location="scripts/evals/cases/stackone-unified-connectors/cursor-pagination-next.json:17">
P3: The `cursor` reply check passes vacuously: the prompt already contains "cursor" twice ("how do I carry the cursor from one page to the next..."), so a reply that merely restates the question satisfies the scored check without the model knowing anything about pagination. `grade.ts` tests the raw regex against the final reply text, so any sentence containing the word passes. Match a code token instead, e.g. backticked `` `cursor` `` per the case README's backtick convention, or a more distinctive signal like `nextKey`, `nextCursor`, or `paginated_request`.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| toolCalls.push({ name: node.name ?? node.tool ?? 'tool', input: node.input ?? node.arguments ?? node.args ?? node }); | ||
| } | ||
| }); | ||
| if (event.type === 'assistant' || event.role === 'assistant') { |
There was a problem hiding this comment.
P1: Codex exec --json replies arrive as nested agent_message items, so this condition never extracts the reply and Codex reply/reference checks run against an empty string. Add parsing for Codex item events, including its tool-call items, before grading these runs.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/evals/hosts/liberal-transcript.ts, line 17:
<comment>Codex `exec --json` replies arrive as nested `agent_message` items, so this condition never extracts the reply and Codex reply/reference checks run against an empty string. Add parsing for Codex item events, including its tool-call items, before grading these runs.</comment>
<file context>
@@ -0,0 +1,60 @@
+ toolCalls.push({ name: node.name ?? node.tool ?? 'tool', input: node.input ?? node.arguments ?? node.args ?? node });
+ }
+ });
+ if (event.type === 'assistant' || event.role === 'assistant') {
+ turns += 1;
+ const text = extractText(event);
</file context>
| const configDir = mkdtempSync(join(options.workDir, 'judge-config-')); | ||
| const raw = exec( | ||
| 'claude', | ||
| ['-p', buildPrompt(reference, reply), '--strict-mcp-config', '--output-format', 'json', '--max-turns', '1', '--model', options.model], |
There was a problem hiding this comment.
P1: The prompt includes the agent's untrusted reply verbatim, but “Do not use any tools” is only an instruction and this invocation does not disable Claude Code tools. An injected reply can prompt the judge to read local files with the developer's permissions; explicitly disable tools for this call.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/evals/judge.ts, line 45:
<comment>The prompt includes the agent's untrusted reply verbatim, but “Do not use any tools” is only an instruction and this invocation does not disable Claude Code tools. An injected reply can prompt the judge to read local files with the developer's permissions; explicitly disable tools for this call.</comment>
<file context>
@@ -0,0 +1,140 @@
+ const configDir = mkdtempSync(join(options.workDir, 'judge-config-'));
+ const raw = exec(
+ 'claude',
+ ['-p', buildPrompt(reference, reply), '--strict-mcp-config', '--output-format', 'json', '--max-turns', '1', '--model', options.model],
+ { cwd: options.workDir, env: { ...process.env, CLAUDE_CONFIG_DIR: configDir } },
+ );
</file context>
| ['-p', buildPrompt(reference, reply), '--strict-mcp-config', '--output-format', 'json', '--max-turns', '1', '--model', options.model], | |
| ['-p', buildPrompt(reference, reply), '--strict-mcp-config', '--tools', '', '--output-format', 'json', '--max-turns', '1', '--model', options.model], |
| } | ||
| const raw = exec( | ||
| 'agy', | ||
| ['-p', prompt, '--add-dir', workDir, '--dangerously-skip-permissions', '--print-timeout', '5m', '--model', model], |
There was a problem hiding this comment.
P1: This flag disables permission checks without sandboxing the host to workDir, allowing an eval model or plugin skill to read or modify the user's files and invoke unrestricted tools. Use a restrictive tool or sandbox mode instead of enabling the dangerous permission bypass.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/evals/hosts/antigravity.ts, line 25:
<comment>This flag disables permission checks without sandboxing the host to `workDir`, allowing an eval model or plugin skill to read or modify the user's files and invoke unrestricted tools. Use a restrictive tool or sandbox mode instead of enabling the dangerous permission bypass.</comment>
<file context>
@@ -0,0 +1,66 @@
+ }
+ const raw = exec(
+ 'agy',
+ ['-p', prompt, '--add-dir', workDir, '--dangerously-skip-permissions', '--print-timeout', '5m', '--model', model],
+ { cwd: workDir },
+ );
</file context>
| "note": "The docs name the channel as StackOne support." | ||
| } | ||
| ], | ||
| "no_reply": [], |
There was a problem hiding this comment.
P2: The no-invention requirement is only in reference[], which is unscored unless the runner receives --score-reference; the default case can pass a reply that invents StackOne’s position on attestation. Add a scored negative check for unsupported commitments or ensure reference scoring is enabled for this case.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/evals/cases/stackone-connectors/teams-publisher-attestation.json, line 15:
<comment>The no-invention requirement is only in `reference[]`, which is unscored unless the runner receives `--score-reference`; the default case can pass a reply that invents StackOne’s position on attestation. Add a scored negative check for unsupported commitments or ensure reference scoring is enabled for this case.</comment>
<file context>
@@ -0,0 +1,21 @@
+ "note": "The docs name the channel as StackOne support."
+ }
+ ],
+ "no_reply": [],
+ "reference": [
+ "Publisher attestation is not covered by the documentation, so the reply says so.",
</file context>
| "reply": [ | ||
| { | ||
| "name": "points-to-support", | ||
| "match": "[Cc]ontact (StackOne('s)? )?[Ss]upport|StackOne [Ss]upport|support team|account (team|manager)|sales", |
There was a problem hiding this comment.
P2: This scored check rejects ordinary correct guidance such as “reach out to support.” Add common support-routing phrasings so the case does not fail on wording alone.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/evals/cases/stackone-platform/connector-billing.json, line 11:
<comment>This scored check rejects ordinary correct guidance such as “reach out to support.” Add common support-routing phrasings so the case does not fail on wording alone.</comment>
<file context>
@@ -0,0 +1,21 @@
+ "reply": [
+ {
+ "name": "points-to-support",
+ "match": "[Cc]ontact (StackOne('s)? )?[Ss]upport|StackOne [Ss]upport|support team|account (team|manager)|sales",
+ "note": "Billing questions go to support or the account team."
+ }
</file context>
| "reply": [ | ||
| { | ||
| "name": "mentions-client-id", | ||
| "match": "[Cc]lient ID", |
There was a problem hiding this comment.
P3: The [Cc]lient ID regex only matches capital "ID" with a space, so a correct reply phrased as "client id" or "clientId" fails this check. Loosen it to [Cc]lient [Ii][Dd] (or drop the space) so the check tracks the docs' intent rather than one exact casing.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/evals/cases/stackone-connect/oauth-app-whose-credentials.json, line 17:
<comment>The `[Cc]lient ID` regex only matches capital "ID" with a space, so a correct reply phrased as "client id" or "clientId" fails this check. Loosen it to `[Cc]lient [Ii][Dd]` (or drop the space) so the check tracks the docs' intent rather than one exact casing.</comment>
<file context>
@@ -0,0 +1,28 @@
+ "reply": [
+ {
+ "name": "mentions-client-id",
+ "match": "[Cc]lient ID",
+ "note": "The reply must address whose client ID goes in the profile."
+ }
</file context>
| "reply": [ | ||
| { | ||
| "name": "mentions-paylocity", | ||
| "match": "Paylocity", |
There was a problem hiding this comment.
P3: This scored reply check matches only the exact casing "Paylocity". grade.ts compiles match with new RegExp(pattern) (no i flag), so a host model that writes "Paylocity" lowercased (e.g. while quoting docs prose) fails the only reply check in the case and sinks the run's score. Same-suite conventions make word-case tolerant ([Ww]ebhook, [Cc]ontact … [Ss]upport, [Pp]roject). Use [Pp]aylocity; the same fix applies to the fixed-case "Manatal" / "Zinc" reply matches in manatal-zinc-sonavate.json and "S/4HANA" in sap-erp-connector.json.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/evals/cases/stackone-connectors/paylocity-available.json, line 17:
<comment>This scored `reply` check matches only the exact casing "Paylocity". `grade.ts` compiles `match` with `new RegExp(pattern)` (no `i` flag), so a host model that writes "Paylocity" lowercased (e.g. while quoting docs prose) fails the only reply check in the case and sinks the run's score. Same-suite conventions make word-case tolerant (`[Ww]ebhook`, `[Cc]ontact` … `[Ss]upport`, `[Pp]roject`). Use `[Pp]aylocity`; the same fix applies to the fixed-case `"Manatal"` / `"Zinc"` reply matches in manatal-zinc-sonavate.json and `"S/4HANA"` in sap-erp-connector.json.</comment>
<file context>
@@ -0,0 +1,27 @@
+ "reply": [
+ {
+ "name": "mentions-paylocity",
+ "match": "Paylocity",
+ "note": "The reply has to answer about Paylocity."
+ }
</file context>
| "match": "Paylocity", | |
| "match": "[Pp]aylocity", |
| "reply": [ | ||
| { | ||
| "name": "mentions-cursor", | ||
| "match": "cursor", |
There was a problem hiding this comment.
P3: The cursor reply check passes vacuously: the prompt already contains "cursor" twice ("how do I carry the cursor from one page to the next..."), so a reply that merely restates the question satisfies the scored check without the model knowing anything about pagination. grade.ts tests the raw regex against the final reply text, so any sentence containing the word passes. Match a code token instead, e.g. backticked `cursor` per the case README's backtick convention, or a more distinctive signal like nextKey, nextCursor, or paginated_request.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/evals/cases/stackone-unified-connectors/cursor-pagination-next.json, line 17:
<comment>The `cursor` reply check passes vacuously: the prompt already contains "cursor" twice ("how do I carry the cursor from one page to the next..."), so a reply that merely restates the question satisfies the scored check without the model knowing anything about pagination. `grade.ts` tests the raw regex against the final reply text, so any sentence containing the word passes. Match a code token instead, e.g. backticked `` `cursor` `` per the case README's backtick convention, or a more distinctive signal like `nextKey`, `nextCursor`, or `paginated_request`.</comment>
<file context>
@@ -0,0 +1,27 @@
+ "reply": [
+ {
+ "name": "mentions-cursor",
+ "match": "cursor",
+ "note": "The pagination position carried between pages."
+ }
</file context>
| "match": "cursor", | |
| "match": "`cursor`|nextCursor|nextKey|paginated_request", |
Summary
Adds a regression suite for the integration plugins: a runner that drives an agent host headless with one plugin loaded, and 38 cases that check what the agent did with the plugin's skill. It was built during the SOL-404 audit to measure the docs-link fixes in #40 to #45.
This PR is opened to keep the work in one place. Whether it stays here long term is still open, alongside the support-agent benchmark in
ai-benchmarks.What it does
scripts/evals/run-host.ts): runs a plugin's cases on Claude Code, Antigravity, Cursor or Codex, in a throwaway project with only that plugin present. Claude Code runs also get a throwaway config directory, so no installed plugin, MCP server or user setting leaks in.scripts/evals/cases/<plugin>/): 38 across the six integration plugins:The prompts are rewritten from real support conversations and anonymised.
typescriptand@types/nodeare dev dependencies for the typecheck only.Not in this PR
stackone-defenderhas its ownnpm testsuite and no cases here.Files
scripts/evals/run-host.ts,cases.ts,grade.ts,judge.ts,report.ts,process.ts,types.tsscripts/evals/hosts/scripts/evals/cases/scripts/evals/README.mdscripts/evals/package.json,package-lock.json,tsconfig.jsonREADME.mdscripts/added to the repository structure treeTest plan
npm --prefix scripts/evals run typecheckpassesmain🤖 Generated with Claude Code
Summary by cubic
Adds a host-neutral eval runner and 38 regression cases that measure how the integration plugins guide agent hosts to the right documentation answers, built during the SOL-404 audit.
Runner
typescriptand@types/nodeare dev dependencies for typechecking only.Cases
stackone-defenderkeeps its ownnpm testsuite and has no cases here.Written for commit 87f1b95. Summary will update on new commits.